Integrand size = 25, antiderivative size = 374 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=\frac {1}{16} \left (162 b d \left (4 c^2+d^2\right )+b^3 d \left (18 c^2+5 d^2\right )+18 b^2 c \left (4 c^2+9 d^2\right )+216 \left (2 c^3+3 c d^2\right )\right ) x-\frac {\left (9 b^2 d \left (3 c^2+d^2\right )+27 b c \left (c^2+3 d^2\right )+b^3 c \left (c^2+3 d^2\right )+27 \left (3 c^2 d+d^3\right )\right ) \cos (e+f x)}{f}+\frac {(b c+3 d) \left (24 b c d+9 d^2+b^2 \left (c^2+6 d^2\right )\right ) \cos ^3(e+f x)}{3 f}-\frac {3 b^2 d^2 (b c+3 d) \cos ^5(e+f x)}{5 f}-\frac {\left (648 c d^2+162 b d \left (4 c^2+d^2\right )+b^3 d \left (18 c^2+5 d^2\right )+18 b^2 c \left (4 c^2+9 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{16 f}-\frac {5 b^3 d^3 \cos (e+f x) \sin ^3(e+f x)}{24 f}-\frac {3 b d \left (b^2 c^2+9 b c d+9 d^2\right ) \cos (e+f x) \sin ^3(e+f x)}{4 f}-\frac {b^3 d^3 \cos (e+f x) \sin ^5(e+f x)}{6 f} \]
[Out]
Time = 0.63 (sec) , antiderivative size = 493, normalized size of antiderivative = 1.32, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2872, 3102, 2832, 2813} \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=\frac {b \left (-90 a^2 d^2+18 a b c d-\left (b^2 \left (2 c^2+25 d^2\right )\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^3}{120 d^2 f}-\frac {\left (200 a^3 c d^3+90 a^2 b d^2 \left (2 c^2+3 d^2\right )-6 a b^2 c d \left (6 c^2-71 d^2\right )+b^3 \left (4 c^4+36 c^2 d^2+75 d^4\right )\right ) \sin (e+f x) \cos (e+f x)}{240 d f}+\frac {1}{16} x \left (8 a^3 \left (2 c^3+3 c d^2\right )+18 a^2 b d \left (4 c^2+d^2\right )+6 a b^2 c \left (4 c^2+9 d^2\right )+b^3 d \left (18 c^2+5 d^2\right )\right )-\frac {\left (40 a^3 d^3+90 a^2 b c d^2-a b^2 \left (18 c^2 d-96 d^3\right )+b^3 \left (2 c^3+21 c d^2\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{120 d^2 f}-\frac {\left (40 a^3 d^3 \left (4 c^2+d^2\right )+90 a^2 b c d^2 \left (c^2+4 d^2\right )-6 a b^2 d \left (3 c^4-52 c^2 d^2-16 d^4\right )+b^3 \left (2 c^5+17 c^3 d^2+96 c d^4\right )\right ) \cos (e+f x)}{60 d^2 f}+\frac {b^2 (2 b c-13 a d) \cos (e+f x) (c+d \sin (e+f x))^4}{30 d^2 f}-\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f} \]
[In]
[Out]
Rule 2813
Rule 2832
Rule 2872
Rule 3102
Rubi steps \begin{align*} \text {integral}& = -\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f}+\frac {\int (c+d \sin (e+f x))^3 \left (b^3 c+6 a^3 d+4 a b^2 d-b \left (a b c-18 a^2 d-5 b^2 d\right ) \sin (e+f x)-b^2 (2 b c-13 a d) \sin ^2(e+f x)\right ) \, dx}{6 d} \\ & = \frac {b^2 (2 b c-13 a d) \cos (e+f x) (c+d \sin (e+f x))^4}{30 d^2 f}-\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f}+\frac {\int (c+d \sin (e+f x))^3 \left (-3 d \left (b^3 c-10 a^3 d-24 a b^2 d\right )-b \left (18 a b c d-90 a^2 d^2-b^2 \left (2 c^2+25 d^2\right )\right ) \sin (e+f x)\right ) \, dx}{30 d^2} \\ & = \frac {b \left (18 a b c d-90 a^2 d^2-b^2 \left (2 c^2+25 d^2\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^3}{120 d^2 f}+\frac {b^2 (2 b c-13 a d) \cos (e+f x) (c+d \sin (e+f x))^4}{30 d^2 f}-\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f}+\frac {\int (c+d \sin (e+f x))^2 \left (3 d \left (40 a^3 c d+78 a b^2 c d+90 a^2 b d^2-b^3 \left (2 c^2-25 d^2\right )\right )+3 \left (90 a^2 b c d^2+40 a^3 d^3+b^3 \left (2 c^3+21 c d^2\right )-a b^2 \left (18 c^2 d-96 d^3\right )\right ) \sin (e+f x)\right ) \, dx}{120 d^2} \\ & = -\frac {\left (90 a^2 b c d^2+40 a^3 d^3+b^3 \left (2 c^3+21 c d^2\right )-a b^2 \left (18 c^2 d-96 d^3\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{120 d^2 f}+\frac {b \left (18 a b c d-90 a^2 d^2-b^2 \left (2 c^2+25 d^2\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^3}{120 d^2 f}+\frac {b^2 (2 b c-13 a d) \cos (e+f x) (c+d \sin (e+f x))^4}{30 d^2 f}-\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f}+\frac {\int (c+d \sin (e+f x)) \left (3 d \left (450 a^2 b c d^2+40 a^3 d \left (3 c^2+2 d^2\right )+6 a b^2 d \left (33 c^2+32 d^2\right )-b^3 \left (2 c^3-117 c d^2\right )\right )+3 \left (200 a^3 c d^3-6 a b^2 c d \left (6 c^2-71 d^2\right )+90 a^2 b d^2 \left (2 c^2+3 d^2\right )+b^3 \left (4 c^4+36 c^2 d^2+75 d^4\right )\right ) \sin (e+f x)\right ) \, dx}{360 d^2} \\ & = \frac {1}{16} \left (18 a^2 b d \left (4 c^2+d^2\right )+b^3 d \left (18 c^2+5 d^2\right )+6 a b^2 c \left (4 c^2+9 d^2\right )+8 a^3 \left (2 c^3+3 c d^2\right )\right ) x-\frac {\left (40 a^3 d^3 \left (4 c^2+d^2\right )+90 a^2 b c d^2 \left (c^2+4 d^2\right )-6 a b^2 d \left (3 c^4-52 c^2 d^2-16 d^4\right )+b^3 \left (2 c^5+17 c^3 d^2+96 c d^4\right )\right ) \cos (e+f x)}{60 d^2 f}-\frac {\left (200 a^3 c d^3-6 a b^2 c d \left (6 c^2-71 d^2\right )+90 a^2 b d^2 \left (2 c^2+3 d^2\right )+b^3 \left (4 c^4+36 c^2 d^2+75 d^4\right )\right ) \cos (e+f x) \sin (e+f x)}{240 d f}-\frac {\left (90 a^2 b c d^2+40 a^3 d^3+b^3 \left (2 c^3+21 c d^2\right )-a b^2 \left (18 c^2 d-96 d^3\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{120 d^2 f}+\frac {b \left (18 a b c d-90 a^2 d^2-b^2 \left (2 c^2+25 d^2\right )\right ) \cos (e+f x) (c+d \sin (e+f x))^3}{120 d^2 f}+\frac {b^2 (2 b c-13 a d) \cos (e+f x) (c+d \sin (e+f x))^4}{30 d^2 f}-\frac {b^2 \cos (e+f x) (a+b \sin (e+f x)) (c+d \sin (e+f x))^4}{6 d f} \\ \end{align*}
Time = 7.90 (sec) , antiderivative size = 495, normalized size of antiderivative = 1.32 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=\frac {25920 c^3 e+4320 b^2 c^3 e+38880 b c^2 d e+1080 b^3 c^2 d e+38880 c d^2 e+9720 b^2 c d^2 e+9720 b d^3 e+300 b^3 d^3 e+25920 c^3 f x+4320 b^2 c^3 f x+38880 b c^2 d f x+1080 b^3 c^2 d f x+38880 c d^2 f x+9720 b^2 c d^2 f x+9720 b d^3 f x+300 b^3 d^3 f x-360 \left (b^3 \left (2 c^3+5 c d^2\right )+18 b \left (4 c^3+9 c d^2\right )+54 \left (4 c^2 d+d^3\right )+3 b^2 \left (18 c^2 d+5 d^3\right )\right ) \cos (e+f x)+20 \left (324 b c d^2+108 d^3+b^3 \left (4 c^3+15 c d^2\right )+9 b^2 \left (12 c^2 d+5 d^3\right )\right ) \cos (3 (e+f x))-36 b^3 c d^2 \cos (5 (e+f x))-108 b^2 d^3 \cos (5 (e+f x))-2160 b^2 c^3 \sin (2 (e+f x))-19440 b c^2 d \sin (2 (e+f x))-720 b^3 c^2 d \sin (2 (e+f x))-19440 c d^2 \sin (2 (e+f x))-6480 b^2 c d^2 \sin (2 (e+f x))-6480 b d^3 \sin (2 (e+f x))-225 b^3 d^3 \sin (2 (e+f x))+90 b^3 c^2 d \sin (4 (e+f x))+810 b^2 c d^2 \sin (4 (e+f x))+810 b d^3 \sin (4 (e+f x))+45 b^3 d^3 \sin (4 (e+f x))-5 b^3 d^3 \sin (6 (e+f x))}{960 f} \]
[In]
[Out]
Time = 5.35 (sec) , antiderivative size = 320, normalized size of antiderivative = 0.86
method | result | size |
parts | \(a^{3} c^{3} x -\frac {\left (3 a \,b^{2} d^{3}+3 b^{3} c \,d^{2}\right ) \left (\frac {8}{3}+\sin ^{4}\left (f x +e \right )+\frac {4 \left (\sin ^{2}\left (f x +e \right )\right )}{3}\right ) \cos \left (f x +e \right )}{5 f}-\frac {\left (3 a^{3} c^{2} d +3 a^{2} b \,c^{3}\right ) \cos \left (f x +e \right )}{f}+\frac {\left (3 a^{2} b \,d^{3}+9 a \,b^{2} c \,d^{2}+3 b^{3} c^{2} d \right ) \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )}{f}+\frac {\left (3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d +3 a \,b^{2} c^{3}\right ) \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )}{f}-\frac {\left (d^{3} a^{3}+9 c \,d^{2} a^{2} b +9 a \,b^{2} c^{2} d +b^{3} c^{3}\right ) \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )}{3 f}+\frac {b^{3} d^{3} \left (-\frac {\left (\sin ^{5}\left (f x +e \right )+\frac {5 \left (\sin ^{3}\left (f x +e \right )\right )}{4}+\frac {15 \sin \left (f x +e \right )}{8}\right ) \cos \left (f x +e \right )}{6}+\frac {5 f x}{16}+\frac {5 e}{16}\right )}{f}\) | \(320\) |
parallelrisch | \(\frac {45 \left (\left (-16 c^{2} d -5 d^{3}\right ) b^{3}-16 a c \left (c^{2}+3 d^{2}\right ) b^{2}-48 a^{2} \left (c^{2}+\frac {d^{2}}{3}\right ) d b -16 a^{3} c \,d^{2}\right ) \sin \left (2 f x +2 e \right )+80 \left (d a +c b \right ) \left (\left (c^{2}+\frac {15 d^{2}}{4}\right ) b^{2}+8 a b c d +d^{2} a^{2}\right ) \cos \left (3 f x +3 e \right )+45 \left (\left (2 c^{2} d +d^{3}\right ) b^{3}+6 a \,b^{2} c \,d^{2}+2 a^{2} b \,d^{3}\right ) \sin \left (4 f x +4 e \right )+36 \left (-a \,b^{2} d^{3}-b^{3} c \,d^{2}\right ) \cos \left (5 f x +5 e \right )-5 b^{3} d^{3} \sin \left (6 f x +6 e \right )-2880 \left (d a +c b \right ) \left (\frac {\left (c^{2}+\frac {5 d^{2}}{2}\right ) b^{2}}{4}+2 a b c d +a^{2} \left (c^{2}+\frac {d^{2}}{4}\right )\right ) \cos \left (f x +e \right )+4 \left (270 c^{2} d f x +75 d^{3} f x -160 c^{3}-384 c \,d^{2}\right ) b^{3}+1440 a \left (c^{3} f x +\frac {9}{4} c \,d^{2} f x -4 c^{2} d -\frac {16}{15} d^{3}\right ) b^{2}-2880 \left (-\frac {3}{2} c^{2} d f x -\frac {3}{8} d^{3} f x +c^{3}+2 c \,d^{2}\right ) a^{2} b +960 \left (c^{3} f x +\frac {3}{2} c \,d^{2} f x -3 c^{2} d -\frac {2}{3} d^{3}\right ) a^{3}}{960 f}\) | \(388\) |
derivativedivides | \(\frac {b^{3} d^{3} \left (-\frac {\left (\sin ^{5}\left (f x +e \right )+\frac {5 \left (\sin ^{3}\left (f x +e \right )\right )}{4}+\frac {15 \sin \left (f x +e \right )}{8}\right ) \cos \left (f x +e \right )}{6}+\frac {5 f x}{16}+\frac {5 e}{16}\right )-\frac {3 a \,b^{2} d^{3} \left (\frac {8}{3}+\sin ^{4}\left (f x +e \right )+\frac {4 \left (\sin ^{2}\left (f x +e \right )\right )}{3}\right ) \cos \left (f x +e \right )}{5}-\frac {3 b^{3} c \,d^{2} \left (\frac {8}{3}+\sin ^{4}\left (f x +e \right )+\frac {4 \left (\sin ^{2}\left (f x +e \right )\right )}{3}\right ) \cos \left (f x +e \right )}{5}+3 a^{2} b \,d^{3} \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )+9 a \,b^{2} c \,d^{2} \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )+3 b^{3} c^{2} d \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )-\frac {d^{3} a^{3} \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )}{3}-3 c \,d^{2} a^{2} b \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )-3 a \,b^{2} c^{2} d \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )-\frac {b^{3} c^{3} \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )}{3}+3 a^{3} c \,d^{2} \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )+9 a^{2} b \,c^{2} d \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )+3 a \,b^{2} c^{3} \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )-3 a^{3} c^{2} d \cos \left (f x +e \right )-3 a^{2} b \,c^{3} \cos \left (f x +e \right )+c^{3} a^{3} \left (f x +e \right )}{f}\) | \(489\) |
default | \(\frac {b^{3} d^{3} \left (-\frac {\left (\sin ^{5}\left (f x +e \right )+\frac {5 \left (\sin ^{3}\left (f x +e \right )\right )}{4}+\frac {15 \sin \left (f x +e \right )}{8}\right ) \cos \left (f x +e \right )}{6}+\frac {5 f x}{16}+\frac {5 e}{16}\right )-\frac {3 a \,b^{2} d^{3} \left (\frac {8}{3}+\sin ^{4}\left (f x +e \right )+\frac {4 \left (\sin ^{2}\left (f x +e \right )\right )}{3}\right ) \cos \left (f x +e \right )}{5}-\frac {3 b^{3} c \,d^{2} \left (\frac {8}{3}+\sin ^{4}\left (f x +e \right )+\frac {4 \left (\sin ^{2}\left (f x +e \right )\right )}{3}\right ) \cos \left (f x +e \right )}{5}+3 a^{2} b \,d^{3} \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )+9 a \,b^{2} c \,d^{2} \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )+3 b^{3} c^{2} d \left (-\frac {\left (\sin ^{3}\left (f x +e \right )+\frac {3 \sin \left (f x +e \right )}{2}\right ) \cos \left (f x +e \right )}{4}+\frac {3 f x}{8}+\frac {3 e}{8}\right )-\frac {d^{3} a^{3} \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )}{3}-3 c \,d^{2} a^{2} b \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )-3 a \,b^{2} c^{2} d \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )-\frac {b^{3} c^{3} \left (2+\sin ^{2}\left (f x +e \right )\right ) \cos \left (f x +e \right )}{3}+3 a^{3} c \,d^{2} \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )+9 a^{2} b \,c^{2} d \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )+3 a \,b^{2} c^{3} \left (-\frac {\sin \left (f x +e \right ) \cos \left (f x +e \right )}{2}+\frac {f x}{2}+\frac {e}{2}\right )-3 a^{3} c^{2} d \cos \left (f x +e \right )-3 a^{2} b \,c^{3} \cos \left (f x +e \right )+c^{3} a^{3} \left (f x +e \right )}{f}\) | \(489\) |
risch | \(-\frac {3 \cos \left (f x +e \right ) d^{3} a^{3}}{4 f}-\frac {3 \cos \left (f x +e \right ) b^{3} c^{3}}{4 f}+\frac {9 b^{3} c^{2} d x}{8}-\frac {9 \sin \left (2 f x +2 e \right ) a^{2} b \,c^{2} d}{4 f}-\frac {9 \sin \left (2 f x +2 e \right ) a \,b^{2} c \,d^{2}}{4 f}+\frac {9 a^{2} b \,d^{3} x}{8}-\frac {27 \cos \left (f x +e \right ) c \,d^{2} a^{2} b}{4 f}-\frac {27 \cos \left (f x +e \right ) a \,b^{2} c^{2} d}{4 f}+\frac {9 \sin \left (4 f x +4 e \right ) a \,b^{2} c \,d^{2}}{32 f}+\frac {3 \cos \left (3 f x +3 e \right ) c \,d^{2} a^{2} b}{4 f}+\frac {3 \cos \left (3 f x +3 e \right ) a \,b^{2} c^{2} d}{4 f}-\frac {3 d^{3} b^{2} \cos \left (5 f x +5 e \right ) a}{80 f}+\frac {5 \cos \left (3 f x +3 e \right ) b^{3} c \,d^{2}}{16 f}-\frac {3 \sin \left (2 f x +2 e \right ) a^{3} c \,d^{2}}{4 f}-\frac {3 \sin \left (2 f x +2 e \right ) a^{2} b \,d^{3}}{4 f}-\frac {3 \sin \left (2 f x +2 e \right ) a \,b^{2} c^{3}}{4 f}-\frac {3 \sin \left (2 f x +2 e \right ) b^{3} c^{2} d}{4 f}-\frac {15 \sin \left (2 f x +2 e \right ) b^{3} d^{3}}{64 f}-\frac {3 \cos \left (f x +e \right ) a^{3} c^{2} d}{f}-\frac {3 \cos \left (f x +e \right ) a^{2} b \,c^{3}}{f}-\frac {15 \cos \left (f x +e \right ) a \,b^{2} d^{3}}{8 f}-\frac {15 \cos \left (f x +e \right ) b^{3} c \,d^{2}}{8 f}+\frac {\cos \left (3 f x +3 e \right ) d^{3} a^{3}}{12 f}+\frac {\cos \left (3 f x +3 e \right ) b^{3} c^{3}}{12 f}-\frac {3 d^{2} b^{3} \cos \left (5 f x +5 e \right ) c}{80 f}+\frac {3 x \,a^{3} c \,d^{2}}{2}+\frac {3 x a \,b^{2} c^{3}}{2}+\frac {3 \sin \left (4 f x +4 e \right ) b^{3} d^{3}}{64 f}+\frac {5 x \,b^{3} d^{3}}{16}-\frac {b^{3} d^{3} \sin \left (6 f x +6 e \right )}{192 f}+\frac {9 x \,a^{2} b \,c^{2} d}{2}+\frac {27 x a \,b^{2} c \,d^{2}}{8}+\frac {3 \sin \left (4 f x +4 e \right ) a^{2} b \,d^{3}}{32 f}+\frac {3 \sin \left (4 f x +4 e \right ) b^{3} c^{2} d}{32 f}+\frac {5 \cos \left (3 f x +3 e \right ) a \,b^{2} d^{3}}{16 f}+a^{3} c^{3} x\) | \(645\) |
norman | \(\text {Expression too large to display}\) | \(1540\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 375, normalized size of antiderivative = 1.00 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=-\frac {144 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} \cos \left (f x + e\right )^{5} - 80 \, {\left (b^{3} c^{3} + 9 \, a b^{2} c^{2} d + 3 \, {\left (3 \, a^{2} b + 2 \, b^{3}\right )} c d^{2} + {\left (a^{3} + 6 \, a b^{2}\right )} d^{3}\right )} \cos \left (f x + e\right )^{3} - 15 \, {\left (8 \, {\left (2 \, a^{3} + 3 \, a b^{2}\right )} c^{3} + 18 \, {\left (4 \, a^{2} b + b^{3}\right )} c^{2} d + 6 \, {\left (4 \, a^{3} + 9 \, a b^{2}\right )} c d^{2} + {\left (18 \, a^{2} b + 5 \, b^{3}\right )} d^{3}\right )} f x + 240 \, {\left ({\left (3 \, a^{2} b + b^{3}\right )} c^{3} + 3 \, {\left (a^{3} + 3 \, a b^{2}\right )} c^{2} d + 3 \, {\left (3 \, a^{2} b + b^{3}\right )} c d^{2} + {\left (a^{3} + 3 \, a b^{2}\right )} d^{3}\right )} \cos \left (f x + e\right ) + 5 \, {\left (8 \, b^{3} d^{3} \cos \left (f x + e\right )^{5} - 2 \, {\left (18 \, b^{3} c^{2} d + 54 \, a b^{2} c d^{2} + {\left (18 \, a^{2} b + 13 \, b^{3}\right )} d^{3}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (24 \, a b^{2} c^{3} + 6 \, {\left (12 \, a^{2} b + 5 \, b^{3}\right )} c^{2} d + 6 \, {\left (4 \, a^{3} + 15 \, a b^{2}\right )} c d^{2} + {\left (30 \, a^{2} b + 11 \, b^{3}\right )} d^{3}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{240 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1217 vs. \(2 (400) = 800\).
Time = 0.49 (sec) , antiderivative size = 1217, normalized size of antiderivative = 3.25 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 477, normalized size of antiderivative = 1.28 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=\frac {960 \, {\left (f x + e\right )} a^{3} c^{3} + 720 \, {\left (2 \, f x + 2 \, e - \sin \left (2 \, f x + 2 \, e\right )\right )} a b^{2} c^{3} + 320 \, {\left (\cos \left (f x + e\right )^{3} - 3 \, \cos \left (f x + e\right )\right )} b^{3} c^{3} + 2160 \, {\left (2 \, f x + 2 \, e - \sin \left (2 \, f x + 2 \, e\right )\right )} a^{2} b c^{2} d + 2880 \, {\left (\cos \left (f x + e\right )^{3} - 3 \, \cos \left (f x + e\right )\right )} a b^{2} c^{2} d + 90 \, {\left (12 \, f x + 12 \, e + \sin \left (4 \, f x + 4 \, e\right ) - 8 \, \sin \left (2 \, f x + 2 \, e\right )\right )} b^{3} c^{2} d + 720 \, {\left (2 \, f x + 2 \, e - \sin \left (2 \, f x + 2 \, e\right )\right )} a^{3} c d^{2} + 2880 \, {\left (\cos \left (f x + e\right )^{3} - 3 \, \cos \left (f x + e\right )\right )} a^{2} b c d^{2} + 270 \, {\left (12 \, f x + 12 \, e + \sin \left (4 \, f x + 4 \, e\right ) - 8 \, \sin \left (2 \, f x + 2 \, e\right )\right )} a b^{2} c d^{2} - 192 \, {\left (3 \, \cos \left (f x + e\right )^{5} - 10 \, \cos \left (f x + e\right )^{3} + 15 \, \cos \left (f x + e\right )\right )} b^{3} c d^{2} + 320 \, {\left (\cos \left (f x + e\right )^{3} - 3 \, \cos \left (f x + e\right )\right )} a^{3} d^{3} + 90 \, {\left (12 \, f x + 12 \, e + \sin \left (4 \, f x + 4 \, e\right ) - 8 \, \sin \left (2 \, f x + 2 \, e\right )\right )} a^{2} b d^{3} - 192 \, {\left (3 \, \cos \left (f x + e\right )^{5} - 10 \, \cos \left (f x + e\right )^{3} + 15 \, \cos \left (f x + e\right )\right )} a b^{2} d^{3} + 5 \, {\left (4 \, \sin \left (2 \, f x + 2 \, e\right )^{3} + 60 \, f x + 60 \, e + 9 \, \sin \left (4 \, f x + 4 \, e\right ) - 48 \, \sin \left (2 \, f x + 2 \, e\right )\right )} b^{3} d^{3} - 2880 \, a^{2} b c^{3} \cos \left (f x + e\right ) - 2880 \, a^{3} c^{2} d \cos \left (f x + e\right )}{960 \, f} \]
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 410, normalized size of antiderivative = 1.10 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=-\frac {b^{3} d^{3} \sin \left (6 \, f x + 6 \, e\right )}{192 \, f} + \frac {1}{16} \, {\left (16 \, a^{3} c^{3} + 24 \, a b^{2} c^{3} + 72 \, a^{2} b c^{2} d + 18 \, b^{3} c^{2} d + 24 \, a^{3} c d^{2} + 54 \, a b^{2} c d^{2} + 18 \, a^{2} b d^{3} + 5 \, b^{3} d^{3}\right )} x - \frac {3 \, {\left (b^{3} c d^{2} + a b^{2} d^{3}\right )} \cos \left (5 \, f x + 5 \, e\right )}{80 \, f} + \frac {{\left (4 \, b^{3} c^{3} + 36 \, a b^{2} c^{2} d + 36 \, a^{2} b c d^{2} + 15 \, b^{3} c d^{2} + 4 \, a^{3} d^{3} + 15 \, a b^{2} d^{3}\right )} \cos \left (3 \, f x + 3 \, e\right )}{48 \, f} - \frac {3 \, {\left (8 \, a^{2} b c^{3} + 2 \, b^{3} c^{3} + 8 \, a^{3} c^{2} d + 18 \, a b^{2} c^{2} d + 18 \, a^{2} b c d^{2} + 5 \, b^{3} c d^{2} + 2 \, a^{3} d^{3} + 5 \, a b^{2} d^{3}\right )} \cos \left (f x + e\right )}{8 \, f} + \frac {3 \, {\left (2 \, b^{3} c^{2} d + 6 \, a b^{2} c d^{2} + 2 \, a^{2} b d^{3} + b^{3} d^{3}\right )} \sin \left (4 \, f x + 4 \, e\right )}{64 \, f} - \frac {3 \, {\left (16 \, a b^{2} c^{3} + 48 \, a^{2} b c^{2} d + 16 \, b^{3} c^{2} d + 16 \, a^{3} c d^{2} + 48 \, a b^{2} c d^{2} + 16 \, a^{2} b d^{3} + 5 \, b^{3} d^{3}\right )} \sin \left (2 \, f x + 2 \, e\right )}{64 \, f} \]
[In]
[Out]
Time = 9.52 (sec) , antiderivative size = 574, normalized size of antiderivative = 1.53 \[ \int (3+b \sin (e+f x))^3 (c+d \sin (e+f x))^3 \, dx=-\frac {180\,a^3\,d^3\,\cos \left (e+f\,x\right )+180\,b^3\,c^3\,\cos \left (e+f\,x\right )-20\,a^3\,d^3\,\cos \left (3\,e+3\,f\,x\right )-20\,b^3\,c^3\,\cos \left (3\,e+3\,f\,x\right )+\frac {225\,b^3\,d^3\,\sin \left (2\,e+2\,f\,x\right )}{4}-\frac {45\,b^3\,d^3\,\sin \left (4\,e+4\,f\,x\right )}{4}+\frac {5\,b^3\,d^3\,\sin \left (6\,e+6\,f\,x\right )}{4}-75\,a\,b^2\,d^3\,\cos \left (3\,e+3\,f\,x\right )+9\,a\,b^2\,d^3\,\cos \left (5\,e+5\,f\,x\right )-75\,b^3\,c\,d^2\,\cos \left (3\,e+3\,f\,x\right )+9\,b^3\,c\,d^2\,\cos \left (5\,e+5\,f\,x\right )+180\,a\,b^2\,c^3\,\sin \left (2\,e+2\,f\,x\right )+180\,a^2\,b\,d^3\,\sin \left (2\,e+2\,f\,x\right )-\frac {45\,a^2\,b\,d^3\,\sin \left (4\,e+4\,f\,x\right )}{2}+180\,a^3\,c\,d^2\,\sin \left (2\,e+2\,f\,x\right )+180\,b^3\,c^2\,d\,\sin \left (2\,e+2\,f\,x\right )-\frac {45\,b^3\,c^2\,d\,\sin \left (4\,e+4\,f\,x\right )}{2}+720\,a^2\,b\,c^3\,\cos \left (e+f\,x\right )+450\,a\,b^2\,d^3\,\cos \left (e+f\,x\right )+720\,a^3\,c^2\,d\,\cos \left (e+f\,x\right )+450\,b^3\,c\,d^2\,\cos \left (e+f\,x\right )-240\,a^3\,c^3\,f\,x-75\,b^3\,d^3\,f\,x+1620\,a\,b^2\,c^2\,d\,\cos \left (e+f\,x\right )+1620\,a^2\,b\,c\,d^2\,\cos \left (e+f\,x\right )-360\,a\,b^2\,c^3\,f\,x-270\,a^2\,b\,d^3\,f\,x-360\,a^3\,c\,d^2\,f\,x-270\,b^3\,c^2\,d\,f\,x-180\,a\,b^2\,c^2\,d\,\cos \left (3\,e+3\,f\,x\right )-180\,a^2\,b\,c\,d^2\,\cos \left (3\,e+3\,f\,x\right )+540\,a\,b^2\,c\,d^2\,\sin \left (2\,e+2\,f\,x\right )+540\,a^2\,b\,c^2\,d\,\sin \left (2\,e+2\,f\,x\right )-\frac {135\,a\,b^2\,c\,d^2\,\sin \left (4\,e+4\,f\,x\right )}{2}-810\,a\,b^2\,c\,d^2\,f\,x-1080\,a^2\,b\,c^2\,d\,f\,x}{240\,f} \]
[In]
[Out]